home *** CD-ROM | disk | FTP | other *** search
- on realExitApp
- global gSIUserFName, gSIXSuffix, gSIUtils, gSIEventQ, gSIFlush, gSISystem, gSIHDPath, gSICDPath, gSIBackground, gSIPPWrite, gSIPPReadInt, gSIMiscX, gSIWinHelp, gSIActiveWindow, gSIShowWindow, gSIGotoURL
- go("Exit")
- updateStage()
- HSStatePut("opt", "Volume", string(GetVolume()))
- cleanUp()
- GSSave("awsome")
- HSSave(gSIUserFName)
- DVClose()
- if gSISystem = "WIN" then
- set vHWnd to gSIUtils(mGetNamedWindowHdl, "Stage")
- gSIWinHelp(mCall, vHWnd, gSICDPath & "sihelp.hlp", 2, 0)
- end if
- if objectp(gSIUtils) then
- gSIUtils(mdispose)
- end if
- EndBufferingEvents()
- if objectp(gSIEventQ) then
- gSIEventQ(mdispose)
- end if
- if objectp(gSIFlush) then
- gSIFlush(mdispose)
- end if
- if objectp(gSIBackground) then
- gSIBackground(mHide)
- gSIBackground(mdispose)
- end if
- if objectp(gSIPPWrite) then
- gSIPPWrite(mdispose)
- end if
- if objectp(gSIPPReadInt) then
- gSIPPReadInt(mdispose)
- end if
- if objectp(gSIWinHelp) then
- gSIWinHelp(mdispose)
- end if
- if objectp(gSIActiveWindow) then
- gSIActiveWindow(mdispose)
- end if
- if objectp(gSIShowWindow) then
- gSIShowWindow(mdispose)
- end if
- if objectp(gSIGotoURL) then
- gSIGotoURL(mdispose)
- closeXLib("siutils.dll")
- end if
- if objectp(gSIMiscX) then
- gSIMiscX(mdispose)
- end if
- closeXLib("FILEIO" & gSIXSuffix)
- closeXLib("MOVUTILS" & gSIXSuffix)
- closeXLib("Misc_X" & gSIXSuffix)
- if gSISystem = "WIN" then
- closeXLib("EVENTQ" & gSIXSuffix)
- closeXLib("DLLGLUE" & gSIXSuffix)
- else
- if gSISystem = "MAC" then
- closeXLib("FlushXObj" & gSIXSuffix)
- closeXLib("backdrop xobj" & gSIXSuffix)
- end if
- end if
- quit()
- end
-